package com.oedtech.esl.model.sys;

import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Entity(name="sys_store")
public class Store implements Serializable {
    @Id
    private String storeCode;
    private String storeName;
    private String channelList;
    private String description;
    private Date modifyTime;
    private String password;
    private Integer sourceFlag;
    private String modifyWho;
    private String address;
    @Transient
    private boolean newStoreFlag;

    @OneToMany
    @JoinColumn(name="storeCode",referencedColumnName = "storeCode",updatable = false,insertable = false)
    @NotFound(action= NotFoundAction.IGNORE)
    private List<StoreBsid>storeBsidList;


    public String getStoreCode() {
        return storeCode;
    }

    public void setStoreCode(String storeCode) {
        this.storeCode = storeCode;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public String getChannelList() {
        return channelList;
    }

    public void setChannelList(String channelList) {
        this.channelList = channelList;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public List<StoreBsid> getStoreBsidList() {
        return storeBsidList;
    }

    public void setStoreBsidList(List<StoreBsid> storeBsidList) {
        this.storeBsidList = storeBsidList;
    }

    public Integer getSourceFlag() {
        return sourceFlag;
    }

    public void setSourceFlag(Integer sourceFlag) {
        this.sourceFlag = sourceFlag;
    }

    public String getModifyWho() {
        return modifyWho;
    }

    public void setModifyWho(String modifyWho) {
        this.modifyWho = modifyWho;
    }



    public boolean isNewStoreFlag() {
        return newStoreFlag;
    }

    public void setNewStoreFlag(boolean newStoreFlag) {
        this.newStoreFlag = newStoreFlag;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }



}
